package com.sihan.swvp.dao.sys;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.sihan.swvp.dao.BaseDao;
import com.sihan.swvp.entity.sys.Role;

public interface RoleDao extends BaseDao{
	
	public List<Map<String, Object>> getRole(@Param("cd")String cd);

	public int addRole(Role role);
	
	public int getRoleNameByName(@Param("roleName")String roleName);

	public int upateRole(Role role);

	public void deleteRole(@Param("id")String id);
	
	public void deleteroles(@Param("roleid")int roleid);

	public List<Map<String, Object>> getMenuTree(Map<String,Object> params);

	public void addPriv(Map<String,Object> params);

	public void deleteAllPriv(@Param("role")String role);
	
	public int getUsedMenuCount(List<Integer> idslist);
	
	
}
